<% if decorates != nil && decorates.size > 0 -%>
<ul id="list_<%= name -%>">
<%   for decorate in decorates -%>
  <li id="li_<%= decorate.decorate_type -%>_<%= decorate.id-%>"><a href="/decorates/<%= decorate.id-%>"><%= decorate.name -%></a> <span onclick="requestRemove(<%= decorate.id -%>, <%=  document.id -%>); return false;">x</span></li>
<%   end -%>
</ul>
<% else -%>
<% end -%>
